<?php

if($this->paginator) {
    $url = DigNavigation_Service_Menu::getUrlForItem($this->item) . '/p/query/' . $this->query;
    if(!empty ($this->category)) {
        $url .= '/category/' .  $this->category;
    }
    if($this->paginator->count() > 1) {
        echo $this->paginationControl($this->paginator,
            'Sliding',
            array('partials/_pagination-control.phtml', 'digCms'),
            array('item' => $this->item, 'url' => $url));
    }
    echo $this->partialLoop($this->item->partial, $this->paginator);
} elseif(!empty($this->query)) {?>
    <p>Your search for <?= $this->query;?> did not return any results.</p>
<?php } ?>